package com.dev.itb.domain;




public class Person extends BaseDomain {
	private static final long serialVersionUID = -1797004381338098930L;
	private String firstNameThai;
	private String lastNameThai;
	private String firstNameEng;
	private String lastNameEng;
	private String preNameThai;
	private String preNameEng;
	private String citizenId;

	private double age;
	private String birthDateStr;
	private String expiredDateStr;
	private String addressStr;
	private String sex;

	private byte[] imageData;

	public String getFirstNameThai() {
		return firstNameThai;
	}

	public void setFirstNameThai(String firstNameThai) {
		this.firstNameThai = firstNameThai;
	}

	public String getLastNameThai() {
		return lastNameThai;
	}

	public void setLastNameThai(String lastNameThai) {
		this.lastNameThai = lastNameThai;
	}

	public String getFirstNameEng() {
		return firstNameEng;
	}

	public void setFirstNameEng(String firstNameEng) {
		this.firstNameEng = firstNameEng;
	}

	public String getLastNameEng() {
		return lastNameEng;
	}

	public void setLastNameEng(String lastNameEng) {
		this.lastNameEng = lastNameEng;
	}

	public double getAge() {
		return age;
	}

	public void setAge(double age) {
		this.age = age;
	}

	public String getBirthDateStr() {
		return birthDateStr;
	}

	public void setBirthDateStr(String birthDateStr) {
		this.birthDateStr = birthDateStr;
	}

	public String getExpiredDateStr() {
		return expiredDateStr;
	}

	public void setExpiredDateStr(String expiredDateStr) {
		this.expiredDateStr = expiredDateStr;
	}

	public String getAddressStr() {
		return addressStr;
	}

	public void setAddressStr(String addressStr) {
		this.addressStr = addressStr;
	}

	public byte[] getImageData() {
		return imageData;
	}

	public void setImageData(byte[] imageData) {
		this.imageData = imageData;
	}

	public String getPreNameThai() {
		return preNameThai;
	}

	public void setPreNameThai(String preNameThai) {
		this.preNameThai = preNameThai;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPreNameEng() {
		return preNameEng;
	}

	public void setPreNameEng(String preNameEng) {
		this.preNameEng = preNameEng;
	}

	
	public String byteToString(){
			byte[] en = org.apache.commons.codec.binary.Base64.encodeBase64(imageData);
			return "data:image/jpeg;base64," + new String(en) ;
	}

	public String getCitizenId() {
		return citizenId;
	}

	public void setCitizenId(String citizenId) {
		this.citizenId = citizenId;
	}

}
